package com.miao.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * 
 * @author xk
 * @email 2337156522@QQ.com
 * @date 2022-02-22 16:32:45
 */
@Data
@TableName("user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer uid;


	@TableField(exist = false)
	private  Integer uid1;
	/**
	 * 用户名
	 */
	private String nickname;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 盐
	 */
	private String salt;
	/**
	 * 头像
	 */
	private String head;

	@TableField(exist = false)
	private Integer boid;
	/**
	 * 注册时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date registerData;
	/**
	 * 最近登录时间
	 */

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lastLoginData;
	/**
	 * 登录次数
	 */

	private Integer loginCount;

}
